<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" import="com.x.bean.User" %>

<head lang="en">
    <meta charset="UTF-8">
    <title>用户查看</title>
</head>
<body>
 <div class="right">
        <div class="location">
            <strong>你现在所在的位置是:</strong>
            <span>用户管理页面 >> 用户信息查看页面</span>
        </div>
     <div class="inputbox">
         <form id="userForm" name="userForm" method="post" action="${pageContext.request.contextPath }/jsp/userGetByCode.do">
         <label>用户编号：</label>
         <input type="text" class="input-text" id="code" name="code" placeholder="请输入用户编号" required/>
     </div>
 </div>
     <input type="submit" value="保存" >
     <input type="reset" value="重置"/>
     <input type="button" value="返回" onclick="javascript:history.go(-1);"/>
 <div class="info">${error}</div>

 <%User user = (User) request.getAttribute("user");%>
 <table class="providerTable" cellpadding="0" cellspacing="0">
     <tr class="firstTr">
         <th>用户Id</th>
         <th>用户编码</th>
         <th>用户名称</th>
         <th>密码</th>
         <th>等级</th>
     </tr>
        <div>
            <tr>
                <td><input type="text" value="${user.id}" name="id" ></td>
                <td><input type="text" value="${user.code}" name="code"></td>
                <td><input type="text" value="${user.name}" name="name"></td>
                <td><input type="text" value="${user.password}" name="password"></td>
                <td><input type="text" value="${user.grade}" name="grade"></td>
            </tr>
        </div>
 </table>
</body>
